import random
N = int(input('Введите количкство:'))
count_hits = 0
for count_hits in range(N):
    x = random.randint(-100, 100)
    y = random.randint(-100, 100)
    if -7 <= x <= 5 and -8 <= y <=5:
        count_hits += 1
print('Количество выстрелов:', N)
print('Количество попаданий:', count_hits)
    
